package com.caipin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.caipin.domain.table.CourseTimetable;
import org.apache.ibatis.annotations.Delete;
import org.springframework.stereotype.Repository;

/**
 * @Author: zhunian0322@163.com
 * @DateTime: 2020-07-30 15:39
 * @Description: TODO
 */
@Repository
public interface CourseTimetableDao extends BaseMapper<CourseTimetable> {
    @Delete("TRUNCATE TABLE t_timetable")
    void truncateData();

    @Select({"SELECT MAX(sections) FROM t_timetable"})
    int getCourseMaxSections();
}
